Demo: Learn more about floats and integers and practice identifying which numbers are floats or integers!

Any whole number with no decimal or fractional parts is an integer.

Numbers WITH decimal or fractional parts are floats. Any number that is a result of division is a float!

Doing any math with a float AND an integer will result in a float. Example: 2.0 * 5 = 10.0. Even 10.0 is a float!

  • Click Run and follow along with the demo, then drag the numbers into the correct boxes!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)